package com.aat.dizena.base.service.impl;

import java.util.*;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.aat.dizena.base.bean.Roleres;
import com.aat.dizena.base.dao.RoleresDao;
import com.aat.dizena.base.service.RoleresService;

@Service
public class RoleresServiceImpl  implements RoleresService {

    @Autowired
    private RoleresDao roleresDao;

    public int addBean(Roleres bean){
        return roleresDao.addBean(bean);
    }

    public int updateBean(Roleres bean){
        return roleresDao.updateBean(bean);
    }

    public int deleteBean(String id){
        return roleresDao.deleteBean(id);
    }

    public Roleres queryBean(String id){
        return roleresDao.queryBean(id);
    }

    public List<Roleres> queryAll(Map<String, Object> map){
        return roleresDao.queryAll(map);
    }

    public long queryCount(Map<String, Object> map){
        return roleresDao.queryCount(map);
    }

	public int deleteRole(String roleid) {
		return roleresDao.deleteRole(roleid);
	}


}
